<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
	.KEYW {color: #933;}
	.COMM {color: #bbb; font-style: italic;}
	.NUMB {color: #393;}
	.STRN {color: #393;}
	.REGX {color: #339;}
	.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
	</style></head><body><pre><span class='line'>  1</span> <span class="WHIT">
<span class='line'>  2</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">registerNameSpace</span><span class="PUNC">(</span><span class="NAME">ns</span><span class="PUNC">)</span><span class="WHIT">
<span class='line'>  3</span> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>  4</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">nsParts</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ns.split</span><span class="PUNC">(</span><span class="STRN">"."</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>  5</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">root</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">window</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>  6</span>     
<span class='line'>  7</span>     </span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">nsParts.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> 
<span class='line'>  8</span>     </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>  9</span>         </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">typeof</span><span class="WHIT"> </span><span class="NAME">root</span><span class="PUNC">[</span><span class="NAME">nsParts</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"undefined"</span><span class="PUNC">)</span><span class="WHIT"> 
<span class='line'> 10</span>             </span><span class="NAME">root</span><span class="PUNC">[</span><span class="NAME">nsParts</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Object</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 11</span>         
<span class='line'> 12</span>         </span><span class="NAME">root</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">root</span><span class="PUNC">[</span><span class="NAME">nsParts</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 13</span>     </span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 14</span> </span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 15</span> 
<span class='line'> 16</span> </span><span class="NAME">registerNameSpace</span><span class="PUNC">(</span><span class="STRN">"greg.ross.visualisation"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 17</span> 
<span class='line'> 18</span> </span><span class="COMM">/**
<span class='line'> 19</span>  * Defines the Magic Table namespace..
<span class='line'> 20</span>  * @author Greg Ross
<span class='line'> 21</span>  * @constructor
<span class='line'> 22</span>  * @param container the DOM element into which the table will be embedded
<span class='line'> 23</span>  */</span><span class="WHIT">
<span class='line'> 24</span> </span><span class="NAME">greg.ross.visualisation.MagicTable</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">container</span><span class="PUNC">)</span><span class="WHIT">
<span class='line'> 25</span> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 26</span>     </span><span class="NAME">this.containerElement</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">container</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 27</span> </span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 28</span> 
<span class='line'> 29</span> </span><span class="NAME">greg.ross.visualisation.MagicTable.load</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
<span class='line'> 30</span> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 31</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">sources</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 32</span>     </span><span class="NAME">sources</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"http://magic-table.googlecode.com/svn/trunk/magic-table/javascript/Hashtable.js"</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 33</span>     </span><span class="NAME">sources</span><span class="PUNC">[</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"http://magic-table.googlecode.com/svn/trunk/magic-table/javascript/Fisheye.js"</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 34</span>     </span><span class="NAME">sources</span><span class="PUNC">[</span><span class="NUMB">2</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"http://magic-table.googlecode.com/svn/trunk/magic-table/javascript/Matrix.js"</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 35</span>     </span><span class="NAME">sources</span><span class="PUNC">[</span><span class="NUMB">3</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"http://magic-table.googlecode.com/svn/trunk/magic-table/javascript/TableModel.js"</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 36</span>     </span><span class="NAME">sources</span><span class="PUNC">[</span><span class="NUMB">4</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"http://magic-table.googlecode.com/svn/trunk/magic-table/javascript/fisheyeTable.js"</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 37</span>     </span><span class="NAME">sources</span><span class="PUNC">[</span><span class="NUMB">5</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"http://magic-table.googlecode.com/svn/trunk/magic-table/javascript/FisheyeCellRenderer.js"</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 38</span>     </span><span class="NAME">sources</span><span class="PUNC">[</span><span class="NUMB">6</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"http://magic-table.googlecode.com/svn/trunk/magic-table/javascript/DefaultCellRenderer.js"</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 39</span>     </span><span class="NAME">sources</span><span class="PUNC">[</span><span class="NUMB">7</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"http://magic-table.googlecode.com/svn/trunk/magic-table/javascript/ScaleCellRenderer.js"</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 40</span>     </span><span class="NAME">sources</span><span class="PUNC">[</span><span class="NUMB">8</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"http://magic-table.googlecode.com/svn/trunk/magic-table/javascript/CanvasTextFunctions.js"</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 41</span>     </span><span class="NAME">sources</span><span class="PUNC">[</span><span class="NUMB">9</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"http://magic-table.googlecode.com/svn/trunk/magic-table/javascript/ColourGradient.js"</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 42</span>     
<span class='line'> 43</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">e</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 44</span>     
<span class='line'> 45</span>     </span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">sources.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> 
<span class='line'> 46</span>     </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 47</span>         </span><span class="NAME">e</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document.createElement</span><span class="PUNC">(</span><span class="STRN">"script"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 48</span>         </span><span class="NAME">e.src</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">sources</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 49</span>         </span><span class="NAME">e.type</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"text/javascript"</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 50</span>         </span><span class="NAME">document.getElementsByTagName</span><span class="PUNC">(</span><span class="STRN">"head"</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">appendChild</span><span class="PUNC">(</span><span class="NAME">e</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 51</span>     </span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 52</span> </span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 53</span> 
<span class='line'> 54</span> </span><span class="NAME">greg.ross.visualisation.MagicTable.prototype.draw</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">data</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">options</span><span class="PUNC">)</span><span class="WHIT">
<span class='line'> 55</span> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 56</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">defaultRowHeight</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">options.defaultRowHeight</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 57</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">defaultColumnWidth</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">options.defaultColumnWidth</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 58</span> 	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">columnWidths</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">options.columnWidths</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 59</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">tablePositionX</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">options.tablePositionX</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 60</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">tablePositionY</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">options.tablePositionY</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 61</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">tableHeight</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">options.tableHeight</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 62</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">tableWidth</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">options.tableWidth</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 63</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">rowHeaderCount</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">options.rowHeaderCount</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 64</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">columnHeaderCount</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">options.columnHeaderCount</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 65</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">colourRamp</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">options.colourRamp</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 66</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">rows</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">data.getNumberOfRows</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 67</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">columns</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">data.getNumberOfColumns</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 68</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">tableModel</span><span class="WHIT">
<span class='line'> 69</span>     
<span class='line'> 70</span>     </span><span class="NAME">tableModel</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">greg.ross.visualisation.TableModel</span><span class="PUNC">(</span><span class="NAME">rows</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">columns</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">defaultRowHeight</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">defaultColumnWidth</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">rowHeaderCount</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">columnHeaderCount</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">colourRamp</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 71</span>     
<span class='line'> 72</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">rows</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 73</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 74</span>     
<span class='line'> 75</span>     </span><span class="KEYW">do</span><span class="WHIT"> 
<span class='line'> 76</span>     </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 77</span>         </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">columns</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 78</span>         </span><span class="KEYW">do</span><span class="WHIT"> 
<span class='line'> 79</span>         </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 80</span>             </span><span class="NAME">tableModel.setContentAt</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">data.getFormattedValue</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 81</span>         </span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 82</span>         </span><span class="KEYW">while</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">j</span><span class="PUNC">--</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT">
<span class='line'> 83</span>     </span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 84</span>     </span><span class="KEYW">while</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">--</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT">
<span class='line'> 85</span> 	
<span class='line'> 86</span> 	</span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">columnWidths.length</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 87</span> 	</span><span class="KEYW">do</span><span class="WHIT">
<span class='line'> 88</span> 	</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 89</span> 		</span><span class="NAME">tableModel.setColumnWidth</span><span class="PUNC">(</span><span class="NAME">columnWidths</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">column</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">columnWidths</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">width</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 90</span> 	</span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 91</span> 	</span><span class="KEYW">while</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">--</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT">
<span class='line'> 92</span>     
<span class='line'> 93</span>     </span><span class="NAME">tableModel.recalculateMinMaxValues</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 94</span>     
<span class='line'> 95</span>     </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">fisheyeTable</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">greg.ross.visualisation.FisheyeTable</span><span class="PUNC">(</span><span class="NAME">tableModel</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">tablePositionX</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">tablePositionY</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">tableWidth</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">tableHeight</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">options.tableTitle</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.containerElement</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 96</span>     
<span class='line'> 97</span>     </span><span class="NAME">fisheyeTable.setBarFill</span><span class="PUNC">(</span><span class="NAME">options.enableBarFill</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 98</span>     </span><span class="NAME">fisheyeTable.enableFisheye</span><span class="PUNC">(</span><span class="NAME">options.enableFisheye</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 99</span> </span><span class="PUNC">}</span><span class="WHIT">
<span class='line'>100</span> 
<span class='line'>101</span> </span><span class="NAME">greg.ross.visualisation.MagicTable.prototype.escapeHtml</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">text</span><span class="PUNC">)</span><span class="WHIT">
<span class='line'>102</span> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>103</span>     </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">text</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> 
<span class='line'>104</span>         </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="STRN">''</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>105</span>     
<span class='line'>106</span>     </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">text.replace</span><span class="PUNC">(</span><span class="REGX">/&/g</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'&amp;'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">replace</span><span class="PUNC">(</span><span class="REGX">/&lt;/g</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'&lt;'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">replace</span><span class="PUNC">(</span><span class="REGX">/>/g</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'&gt;'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">replace</span><span class="PUNC">(</span><span class="REGX">/"/g</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'&quot;'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>107</span> </span><span class="PUNC">}</span><span class="WHIT">
<span class='line'>108</span> 
<span class='line'>109</span> </span><span class="NAME">greg.ross.visualisation.MagicTable.load</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>110</span> </span></pre></body></html>